package homework03;

import java.util.Scanner;

class PersonOverride{
	private String name;
	private boolean gender;
	private int age;
	
	public PersonOverride(String name,int age,boolean gender){
		this.name=name;
		this.gender=gender;
		this.age=age;
		
	}
	
	public PersonOverride(){
		this("default",1,true);
	}

	@Override
	public String toString() {
		return name+"-"+age+"-"+gender;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + age;
		result = prime * result + (gender ? 1231 : 1237);
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PersonOverride other = (PersonOverride) obj;
		if (age != other.age)
			return false;
		if (gender != other.gender)
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	
}


public class Seven05{
	public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	String N1=sc.nextLine();
	String N2=sc.nextLine();
	
	int n1= Integer.parseInt(N1);
	int n2=Integer.parseInt(N2);
	PersonOverride persons1[]=new PersonOverride[n1];
	PersonOverride persons2[]=new PersonOverride[n2];
	for(int i=0;i<n1;i++){
		persons1[i]= new PersonOverride();	
		System.out.println(persons1[i].toString());
	}
	
	
	
	
	}
}
